package com.wind.taobao.api.sns.friends.rest
{
	import com.wind.taobao.api.sns.convert.UserConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuFriendsGetFriendListResponse", since="2.0")]
	/**
	 * taobao.sns.friends.get  Response
	 * @author fxy
	 *
	 */
	public class SNSFriendsGetResponse extends TaobaoListResponse
	{
		public var users:ArrayCollection;

		public function SNSFriendsGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initUsers();
		}

		private function initUsers():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("users"))
					users=UserConvert.convertUsers(body["rsp"]["users"]);
			}
		}

	}
}